package Bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import comm.RowMapper;

	public class greeGoodsRowMapper  implements RowMapper<greeGoods>{
		public greeGoods mapper(ResultSet rs) throws SQLException {
			greeGoods greegoods=new greeGoods();
			greegoods.setGoodsId(rs.getInt("goods_id"));
			greegoods.setGoodsName(rs.getString("goods_name"));
			greegoods.setTypeId(rs.getInt("type_id"));
			greegoods.setGoodsPrice(rs.getDouble("goods_price"));
			greegoods.setGoodsStates(rs.getInt("goods_state"));
			greegoods.setGoodsDetails(rs.getString("goods_details"));
			greegoods.setPicId(rs.getInt("pic_id"));
			return greegoods;
		}
}
